<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
<script type="text/javascript">
	
var str ='阴天';
switch(str){
	case '晴天':
		alert('出去玩');
	break;
	case '雪天':
		alert('在家吃火锅');
	break;
	case '雨天':
		alert('雨中漫步');
	break;
	default:
		alert('睡觉');

}
</script>

</body>
</html>